package com.example.baiduweishi.activities;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.example.baiduweishi.utils.MyUtil;



public class LoginActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        SharedPreferences sharedPreferences = MyUtil.getSharedPre();
        boolean bool = sharedPreferences.getBoolean("wel", false);
        if (bool) {
            Intent intent = new Intent(this, WelcomeActivity.class);
            startActivity(intent);
        } else {
            startActivity(new Intent(this, GuideActivity.class));
        }
        finish();

    }
}